home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr47 / asmlook.zip / ASMLOOK.DOC < prev   
Text File  |  1993-04-19  |  2KB  |  74 lines

  1.                                 LOOK version 1.0
  2.  
  3.  LOOK.COM is a very simple program that searches DOS memory from the bottom
  4.  (0:0) to the top as reported by int 12h for the string entered on the command
  5.  line.  The program searches blocks of 16k for the string entered.  Each match
  6.  is reported in the form of the segment where the match occurred followed by a
  7.  colon, followed by the offset.  The numbers are in hexadecimal.
  8.  
  9.  Hits (string matches) are reported in normalized segment:offset notation,
  10.  that is, the segment where the match occurred is adjusted so that the offset
  11.  will be in the range 0 to F.
  12.  
  13.  The program is useful for determining the locations of any text string, but
  14.  the preponderance of addresses reported will be the buffers where DOS stores
  15.  the command line for its own use.  There are several of these and their
  16.  location depends not only on DOS versions but also on the number and kinds of
  17.  memory resident programs loaded in the system.  Also relevant is whether the
  18.  program is run from a batch file.
  19.  
  20.  Examples:
  21.  
  22.    LOOK abc
  23.  
  24.    Yields on my machine at the time I run the test for this documentation:
  25.  
  26.    0AB1:0006
  27.    0AB7:000E
  28.    0B6B:0007
  29.    0B73:0007
  30.    14D9:0001
  31.    17B6:0002
  32.    1948:0008
  33.    1CCC:0007
  34.    1D4A:0007
  35.    1D51:0002
  36.    39F1:0002
  37.    3B83:0001
  38.    5467:000C
  39.    9B32:0002
  40.    9F31:0004
  41.    9F39:0007
  42.    9FB3:0002
  43.    9FD3:0002
  44.    9FDA:000F
  45.  
  46.    While with the longer phrase,
  47.  
  48.    LOOK Better luck next time (or who ate your cat if it wasn't Alf?)
  49.  
  50.    Resulted in only the following matches
  51.  
  52.    17B6:0002
  53.    1948:0008
  54.    1CCC:0007
  55.    1D4B:000F
  56.    200A:0002
  57.    39F1:0002
  58.    9B32:0002
  59.    9F31:0004
  60.    9F39:0007
  61.    9FD3:0002
  62.  
  63.   The program is intended only as a curiosity, but maybe some enterprising
  64.   user can learn something significant about DOS that he or she might
  65.   otherwise never have known.  In that case I'd deem the program a success.
  66.  
  67.   LOOK is hereby given to the public domain.  Any feedback to the author
  68.   --especially ideas for enhancement--would be appreciated.
  69.  
  70.   Charles Lazo III
  71.   P.O. Box 452
  72.   Hohenwald, TN 38462
  73.  
  74.